package com.glitech.demo.data;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "word_table")
public class VoiceCmd {

    @PrimaryKey
    @NonNull
    @ColumnInfo(name = "word")
    private String word;

    @NonNull
    @ColumnInfo(name = "action")
    private String action;

    public VoiceCmd(@NonNull String word, @NonNull String action) {
        this.word = word;
        this.action = action;
    }

    @NonNull
    public String getWord() {
        return this.word;
    }
    @NonNull
    public String getAction() {
        return this.action;
    }
    public void setWord(@NonNull String word) {
        this.word = word;
    }
    public void setAction(@NonNull String action) {
        this.action = action;
    }
}
